Fire Generator Program Run: FireGenerator_oldFS_log_4.2.13.r

####################################################################
# AGER FIRE GENERATOR
####################################################################
# Created: 11.1.2011
# Latest Updates: 4.2.2013 (Update: replaced wind direction code)
####################################################################
    ##METHODS:
          # Read MC1 monthly ERC values
          # Generate daily ERC values from monthly values using LOG std dev using B. Johnson methods
          # Determine the probability of a fire from Preisler smooth surface fit and logit-line
          # Determine the size of the fire from Greenfell splines and exp distribution
          # Determine wind speed and wind direction from Wind Rose Gust data - corrected!
          # Convert the fire size to burn period based Ager calibration data
          # Determine fuel moisture values from regression, and generate fuel moisture files
         ## Implement agricultural/grassland modifications to fuel moisture files ##
          # Create full fire list 
          # Create fire list file with fires > 1 ha
          # Create fire list file with fires > 1 ha AND implement ignition probability switch

#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#  INFORMATION YOU NEED TO RUN PROGRAM:
#   1) Set filename path (working directory); place all files in this location (line 68)
#   2) Install necessary packages (lines 63-65) and load libraries (lines 71-73)
#   3) Files: a) monthly MC1 input data file (vcfutercgpred.csv)
#             b) historical fire events file (IgnitionProbData.csv)
#             c) historical fire ignitions file (erc-avgfiresize.csv)
#             d) hitorical wind gust file (BrushCreek_WindRose.csv)
#             e) hitorical wind direction file (BrushCreek-WindRose-Summary.csv)
#             f) calibration burn period and windspeed data (new_calibration_firesize_BP_july_2012.csv)
#             g) village creek historical fuel moisture file (villagecrk_fuelmoisture.csv)
#             h) oak knoll historical fuel moisture file (oakknoll_fuelmoisture.csv)
#   4) Start and end dates for future MC1 monthly data
#   5) Size of the study area, line 219, Eugene = 821 sq km
#   6) Set location to output fuel moisture files, see line 647
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Climate model: MIROC
Future ERC Data: log ERC Stdv method
Ignition Probability: updated smooth surface and logit-line
Fire Size: Greenfell smooth spline with data averaged by day - original method
Wind speed: Max wind gust
Wind direction: Monthly wind rose
Burn period: Ager Flammap calibration data
Fuel moisture: Ag modifications including new ones created 11/2012